From ddc588236b5e920e7186d2e1a800bf67ce4daae0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 12 Mar 2011 21:25:07 -0500 Subject: [PATCH] Add annotations to gtk_window_get_position Part of bug 644353, patch by Ulrik Sverdrup. --- gtk/gtkwindow.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 31590a8057..6d42d422f9 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -4277,14 +4277,16 @@ gtk_window_move (GtkWindow *window, /** * gtk_window_get_position: * @window: a #GtkWindow - * @root_x: (out): return location for X coordinate of gravity-determined reference point - * @root_y: (out): return location for Y coordinate of gravity-determined reference point + * @root_x: (out) (allow-none): eturn location for X coordinate of + * gravity-determined reference point, or %NULL + * @root_y: (out) (allow-none): return location for Y coordinate of + * gravity-determined reference point, or %NULL * * This function returns the position you need to pass to - * gtk_window_move() to keep @window in its current position. This - * means that the meaning of the returned value varies with window - * gravity. See gtk_window_move() for more details. - * + * gtk_window_move() to keep @window in its current position. + * This means that the meaning of the returned value varies with + * window gravity. See gtk_window_move() for more details. + * * If you haven't changed the window gravity, its gravity will be * #GDK_GRAVITY_NORTH_WEST. This means that gtk_window_get_position() * gets the position of the top-left corner of the window manager -- 2.30.2